import request from '../../index';


export function getKernrlLog(){
    return request({
        url: '/api/system/kernel/log',
        method: 'get'
    });
}

export function downloadKernrlLog(){
    return request({
        url: '/api/system/kernel/log/download',
        method: 'get'
    });
}

/**
 * 读取系统日志配置
 * @returns 
 */
export function getSystemLogConfig() {
    return request({
        url: '/api/system/log/config',
        method: 'get'
    });
}

/**
 * 设置系统配置
 * @param params {loglevel,logtype}
 * @returns 
 */
export function setSystemLogConfig(params) {
    return request({
        url: '/api/system/log/config',
        method: 'post',
        data: params
    });
}

export function getSystemLog() {
    return request({
        url: '/api/system/log',
        method: 'get'
    });
}

export function downloadSystemLog() {
    return request({
        url: '/api/system/log/download',
        method: 'get'
    });
}
